package com.css.dzj.dzjportal.modules.message.service;

import com.css.dzj.dzjportal.modules.message.entity.PortalMsgEntity;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

/**
 * 消息service
 * @author liyunyue
 */
@Service
public interface MessageService {
    /**
     * 消息列表
     * @param complainTopic
     * @param pageable
     * @param request
     * @return
     */
    QueryResults<PortalMsgEntity> getPage(String complainTopic, Pageable pageable, HttpServletRequest request);

    /**
     * 通过关联id查询投诉举报详情
     * @param linkId
     * @return
     */
    String findByLinkId(String linkId, String wgrRestUrl);
    PortalMsgEntity findById(String id);
    void update(PortalMsgEntity PortalMsgEntity);
    void saveDB(PortalMsgEntity PortalMsgEntity);
    String getCountMsg(HttpServletRequest request);

}
